package com.baiduspring.error;

import lombok.Getter;
import lombok.Setter;

public class BaiduSpringException extends RuntimeException {
    @Setter
    @Getter
    private String errorMsg;

    public BaiduSpringException() {
        super();
    }

    public BaiduSpringException(String message) {
        super(message);
        this.errorMsg = message;
    }

    public BaiduSpringException(String message, Throwable cause) {
        super(message, cause);
        this.errorMsg = message;
    }

    public BaiduSpringException(Throwable cause) {
        super(cause);
    }

    protected BaiduSpringException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
        this.errorMsg = message;
    }
}
